package com.j283_5.wisdom_park.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.sql.Timestamp;
import java.time.LocalDate;

/**
 * <p>
 * 
 * </p>
 *
 * @author laoda
 * @since 2022-04-28
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class Roleinfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 角色信息id
     */
    @TableId(value = "ro_id", type = IdType.AUTO)
    private Integer roId;

    /**
     * 角色名
     */
    private String roName;

    /**
     * 角色类型（0系统角色 1普通角色）
     */
    private Integer roType;

    /**
     * 状态（0启用 1停用）
     */
    private Integer roState;

    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Timestamp roCreatetime;

    /**
     * 更新操作人
     */
    private Integer adId;

    /**
     * 更新时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Timestamp roUpdatetime;

    public Roleinfo(Integer roId, String roName, Integer roType, Integer roState, Integer adId) {
        this.roId = roId;
        this.roName = roName;
        this.roType = roType;
        this.roState = roState;
        this.adId = adId;
    }
}
